package iblink.core;

import java.util.Date;

public class HistoricalData {

	protected Date date;

	protected double open;

	protected double high;

	protected double low;

	protected double close;

	protected int volume;

	protected int count;

	protected double wap;

	protected boolean hasGaps;

	public HistoricalData(Date date, double open, double high, double low,
			double close, int volume, int count, double wap, boolean hasGaps) {
		this.date = date;
		this.open = open;
		this.high = high;
		this.low = low;
		this.close = close;
		this.volume = volume;
		this.count = count;
		this.wap = wap;
		this.hasGaps = hasGaps;
	}

	public String toString() {
		return getClass().getSimpleName() + "[ date[" + date + "] open[" + open
				+ "] high[" + high + "] low[" + low + "] close[" + close
				+ "] volume[" + volume + "] count[" + count + "] wap[" + wap
				+ "] hasGaps[" + hasGaps + "]]";
	}

	public Date getDate() {
		return date;
	}

	public double getOpen() {
		return open;
	}

	public double getHigh() {
		return high;
	}

	public double getLow() {
		return low;
	}

	public double getClose() {
		return close;
	}

	public int getVolume() {
		return volume;
	}

	public int getCount() {
		return count;
	}

	public double getWAP() {
		return wap;
	}

	public boolean hasGaps() {
		return hasGaps;
	}

}
